package it.poste.il.compensatore.utilities;

public class Constant {

	public static Long SENDING;
	public static Long AWAITING_RESPONSE;
	public static Long PERFORMED;
	public static Long TECHNICAL_ERROR;
	public static Long FUNCTIONAL_ERROR;
	public static Long WAITING_RESPONSE_ERROR;
	public static Long SEND_COMPENSATORY;
	public static Long EXPRECTED_COMPENSATORY_RESPONSE;
	public static Long CANCELED;
	public static Long TECHNICAL_ERROR_COMPENSATION;
	public static Long FUNCTIONAL_ERROR_COMPENSATION;
	
	static void init(){
		SENDING = 1000L;
		AWAITING_RESPONSE = 1001L;
		PERFORMED = 1002L;
		TECHNICAL_ERROR = 1003L;
		FUNCTIONAL_ERROR = 1004L;
		WAITING_RESPONSE_ERROR = 1005L;
		SEND_COMPENSATORY = 1006L;
		EXPRECTED_COMPENSATORY_RESPONSE = 1007L;
		CANCELED = 1008L;
		TECHNICAL_ERROR_COMPENSATION = 1009L;
		FUNCTIONAL_ERROR_COMPENSATION = 1010L;
	}
	
	 public enum DEF_VERIFY_RESULT {
	        CANCEL("CR"),RIALLIGN("R"),COMPUTE("C"),NOT_VALID("NV");
	        private String verifyCode;
	        DEF_VERIFY_RESULT(String verifyCode) {
	            this.verifyCode=verifyCode;
	        }
	        public boolean equal(String verifyCode)
	        {
	            if(verifyCode==this.verifyCode)
	                return true;
	            return false;
	        }
	        public String getVerifyCode()
	        {
	            return this.verifyCode;
	        }
	        public void setVerifyCode(String verifyCode)
	        {
	            this.verifyCode=verifyCode;
	        }
	        
}
}
